a lock is used for controlling access.