Fixes related to retained messages:
- When retained messages are disabled, apply it to wills as well.
- In plugin ACL checks, fix certain conditions where the ‘retain’ bool is true incorrectly. On read, it should only be true on ‘retain as published’ or actual retained messages (delivery triggered by a subscribe).