dylib bundler: Ensure files libraries are writable before changing them
Afterwards we restore the previous mode.