Add test for parsing a thread holding some locks