fixed stack sharing in mutex test