[test] Minor cleanup in test-multithread and test-ot-name (#1256)

4 files changed