HPCC-11966 Extend locking primitives to add assertLocked()

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11966 Extend locking primitives to add assertLocked()

Handle nested case

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11966 Extend locking primitives to add assertLocked()

Handle nested case in linux too

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6276 from richardkchapman/assertLocked

HPCC-11966 Extend locking primitives to add assertLocked()

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>