Catch `OSError` around each specific call to `os.chmod`