Several years ago - 1996 - I locked my keys in the car, next to a restaurant. There were a couple VA State Troopers in there and I asked them if they could help me. They had to politely refuse because lawsuits forced them to stop. I know back in the 60's, 70', and before then, the cops would help you.
Now, they are beseiged by everyone and see everyone as the enemy.
A friend of mine is a cop. He told me a few years ago that many departments are now issuing fines to drivers who lock their keys in their car. Just another revenue source I suppose.