@laanwj : your new AssertLockHeld() assertions break unit tests. We should probably compile pull-tester unit-test binaries with -DDEBUG_LOCKORDER to catch these:
unknown location:0: fatal error in "test_IsStandard": signal: SIGABRT (application abort requested)
transaction_tests.cpp:274: last checkpoint
Assertion failed: lock cs_main not held in main.cpp:560; locks held:
pwalletMain->cs_wallet rpc_wallet_tests.cpp:68
Fixing that, I ran into another:
script_P2SH_tests.cpp:182: last checkpoint
Assertion failed: lock cs_main not held in main.cpp:560; locks held:
(I haven't gone any further)