Fix test suite lock initialisation leading to random seg faults in li_boost_shared_ptr