made lock in fidelity-sweep reentrant, i.e. so that it can only be released by the thread that acquired it
made lock in fidelity-sweep reentrant, i.e. so that it can only be released by the thread that acquired it

perlinm/qcdg-nv-simulation,perlinm/qcdg-nv-simulation,perlinm/qcdg-nv-simulation