switching from locks to lockedBy