Fix critical section tests

The block form of the critical section was removed in commit 5e424a8c8b795304ed432f89b28624ad73039e00.
The tests were not.
Guess the result.
Remove trailing whitespace
Update critical section documentation