Allow ThreadPool to be configured with an arbitrary number of threads.
Do not hold the lock more than is necessary in FileDB.
Use uint64_t for the sequence number everywhere.
Replace uint64_t with int64_t for sequence numbers and tree sizes.