Adds storage engine locks, no longer crashing w/ sigsegv.