merged in lock mechanisms of test_parts/spthread_parts.h