[BISERVER-10886] Adds a missing call to lock.lock()
Merge pull request #1160 from lucboudreau/master

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