second attempt to replace pthread locks with hpx spinlocks