Part 1: Create helper objects to make using sqlite3_mutex safer and easier. r=cjones --HG-- rename : xpcom/tests/TestDeadlockDetector.cpp => storage/test/test_deadlock_detector.cpp