workqueue: separate pool-attaching code out from create_worker()