We must not unlock the main stream's mutex until everything is handled correctly, otherwise the other streams might continue in an inconsistent state. As a side-effect, this will only ever request a keyframe if there currently isn't one.
This signals whether we are actually recording currently or not.