futex: Make futexes independent of pthreads