pthreadpool: add pthreadpool_restart_check[_monitor_{fd,drain}]()