extended the critical section, hopefully this stabilizes it a bit