Add an explicit 'is owning' tag for libraries' FileData pointer, and factorize code cleaning it up into a small util function. Also allows to get rid of the weird ugly exception case in `link_end` code for the 'root' library filedata, which is usually owned by caller code and should not be freed here. Pull Request: https://projects.blender.org/blender/blender/pulls/142723