Pass the threaded main loop object to context/stream_state_callback