add advisory_lock_exists? to postgresql