Make it impossible to release lock that has not been acquired. TODO error handling for release.