Adds lock-related utilities.