Document all locking functions