Lock: Added a REALLY simple spin lock for debugging purposes.

Yeah yeah... ironic...
Check: check() should wait for the dump to finish if in abort mode.

Also fix my previous bad commit which I didn't test... I'm good though
since nobody reads below the fold :)