So piss off the users that do? For a while there wasn't even the keyboard shortcut. Throw up a scary warning if you need to but I feel like it's a basic system function that should be included. Some how Windows manages to allow users to toggle hidden files through the GUI and I haven't heard of too many disasters because of it.
I would argue it's actually worse with the keyboard shortcut on OS X because it's completely possible for someone to trigger Cmd+Shift+. accidentally whereas in other OSs it's a clear toggled option in the GUI.