[sanitizer] fix the deadlock detector build