HPCC-11418 Roxie may stall for long periods under load

Switch spinlock finto criticalSection (will refactor further in 5.0 or later)

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>