CameraEncoder stability improvements

Ensure CameraEncoder does not attempt to process frames after releasing EGL resources

CameraEncoder no longer tries to make the encoder EGL context current on each frame unless we're encoding.
This is a slight performance win on all devices, but also caused a crash on the Nexus 7 (2012)