Officer who failed to treat killing of Chinese driver as racist crime becomes top murder detective in Scotland