issue #19793: fixed lock binding
issue #19793: check myself
Merge pull request #218 from shackbarth/19793

issue #19793: fixed lock binding