Handle permissions corner cases on uninstall

* unset BSD file flags if present
* attempt ownership change if permissions changes fail

fixes #6699
fixes #6752