perform advisory lock to safeguard from concurrency issues