add simple lock barrier tool to block the flow of queries