doc related to lock