add test case based on a crash that I saw with fsx and gdb
add new setup for running common tests that mimics sqlfs_op_* functions

The sqlfs_op_* functions are the versions that are handed to libfuse.
They handle tracking the sqlfs using pthread_key_t.