exchanged pthread locks with hpx locks