refactored thread.clj to use defonce for initializing thread-pool