Revert "fixes multithreading random crashes". Will try locking on C++
This reverts commit 73b95c68619f2bdea033a77ffb923cb236d3ac29.
mutex lock for db operations