code is freezing due to futex_wait_private getting stuck...