Minor fix to id_sd (unrelated to last commit). There's been no deadlock before, but adding anyway.