Chainable pause resume

I was reviewing #6076, and I think it's not a terrible idea, but we may as well do the same thing for pause() and resume(), since userland streams are overriding to add this behavior anyway.

(This PR includes @juliangruber's patch from #6076.)