rtsp-server: port to new thread API