Fix deadlock that can occur on Windows when shutting down a pool of io_service threads due to running out of work. Refs #7552