[sanitizer] fix build warnings; add an output test for the deadlock detecor