San Francisco Mayor Daniel Lurie told CNBC's Jim Cramer on Wednesday that his city has the funding to hire more police officers.