Lock functions comments improved