swf_poll_for_activity_task function

Used by workers to get an ActivityTask from the specified activity taskList