Subaru ignition switch

I have a 2010 Subaru Forester past warranty. I remove the key from the ignition switch and open the door I get the chime and the doors will not lock with the remote. If I pull the key out rapidly it usually works okay. The Subaru garage wants to replace all locks to fix the problem. That seems excessive to me. Does anyone have any ideas?

Try a lock lubricant without graphite.