core/iccprofile: don't crash if permission errors occur
The version of the function without an error code throws an exception if an OS error of any kind happens.
Commit 2 (not to be cherry-picked because string freeze) shows a more specific error message when this happens.