The late producer’s take on the N.W.A classic was inspired by his own experiences with law enforcement