[BISERVER-10886] Adds a missing call to lock.lock()