lavd/sdl: add event handler thread