pinMode: don't fail if the mux is already set

* Only in the case that the debugfs entry isn't writable
* Only checking the mux mode, not slew, rx, etc.
* Needs to be replaced with pinmux-helper usage or other replacement