Change /tmp/titan-test scratchdir to target/db
Reorder baseTx.commit() and deleteAllLocks()