#58 A collection of Pipeline fixes

- Enforce the size limit across all threads
- Fix a leak of pipeline slots
- Make synchronous processing work again (when enabled)
- Various bits of tidy-up