Fix #2080 and fix #2141

This fixes issues with the shared status icons, including showing the status icons for external storage shared files.

Will probably also fix #2171 though I never reproduced it. @rperezb 

@raghunayyar @karlitschek @schiesbn @MTRichards @icewind1991