It's unusual that an A95 would report "card locked" as it uses a compact flash card which is incapable of being locked. Please verify the model of your camera, and the card that it uses.
In the mean time, I'll assume that actually own a different camera that uses SD cards. If so, please see this link
for troubleshooting tips for SD card locked problems.
But if you indeed own an A95 with compact flash, the problem may possibly be caused by bent flash card pins inside the camera card slot (take a look inside using a flashlight). If bent pins are found, then see this link
for a possible home fix.