Ensure advisory lock/unlock are issued on same connection