I wonder how much of this is actually age bias, would it be more likely to make them criminals if they chose young but white sounding names or explicitly suggested an age?
I tried the same prompts with many different white sounding names. The only one that stopped the two men from being detectives was "Sammy" instead of Sam. Maybe there is something to the age bias theory.