Okay... B is a child of A and the bug happens on image 2.
image 1 : original position.
image 2 : B does not inherit scale from A. I scaled A and that's where the offset happens.
image 3 : B inherits scale from A. I scaled A and everything looks good.
The bone i mentioned I could add between to avoid the bug would be between A and B in this case.
I hope it's more clear now.. 🙂
I added an example.