In object mode, transform locks are applied in global space, in pose mode, they are applied in bone local space. This makes it so the manipulator axes are only hided when the manipulator actually shows this space. Everything else can be quite confusing. Animators in the studio here (Blender Animatino Studios) requested a change like this.
This does two further fixes:
- Don't show manipulator if root or tip of a locked edit-bone is selected (used to only hide it when bone itself was selected).
- Missing update when changing edit-bone lock.