"Seems to me that locks on A with a lock on B in between is not equivalent to 2 locks on A and then one on B"
You're looking at:
public void canNotBeMerged()
The locks can't be merged.