FEATURE: threadpool_has_completed_task(): check if calling threadpool_take_completed_task() would block