When switching capture caps, camerabin1 resets its state to ready to force a new caps to be negotiated. This causes ongoing captures to be aborted. This commit adds a condition to wait for captures to finish before going to ready state.