Fix #92: Do not fetch the database for locking if the piece is local.
Fix #98: Had forgotten to update the database with the released lock
Merge branch 'master' of github.com:gentimouton/rcat