Fix for local lock reference counting on manual release of locks.
Merge pull request #2189 from jakewins/2.1-slavelocksfix

Fix for local lock reference counting on manual release of locks.