IGNITE-16502 fixed deadlock caused by query plan cache (#652)