HPCC-11162 Spin lock optimization

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>