Guard prepared statements with mutexes for concurrent executing