Barnabycourt polling

1) Fix test errors in unit tests that require locked resources
2) Add support for polling tasks that use the spawned_tasks field
3) Update the PulpCodedException to use keyword arguments for it's fields per recommendation from jortel