changes to reflect the new syntax of the locking calls.