Ensure advisory lock/unlock are issued on same connection
Merge pull request #143 from aalness/sync_lock

Ensure advisory lock/unlock are issued on same connection