issue #19456: releaseLock to take options
Merge pull request #42 from shackbarth/19456

issue #19456: releaseLock to take options