mpvcore/input: Fix build without pthreads