Fix a race condition between rtsp and httpd