Synchronized access to the camera