Take critical section back out.

Douwe reported very bad performance which I think is related to this.
His i3 with unknown graphics got very slow. I don't notice it on my i7 with 16 GB and fast NVidia graphics,
but that is not a 'typical' machine.