Term reclamation moved to separate thread

Improves performance of write operations.
Add protection around table creation.