Make sure LibWebRTCMediaEndpoint is always destroyed on the main thread