Made SendThreadPool thread-safe