check upload dir permissions
Detect permission and ownership issues with the users uploads dir. This helps troubleshoot and correct gitlab-org/omnibus-gitlab#311. Fixes gitlabhq#7500 (closed), gitlabhq#7052 (closed). Related to gitlabhq#6281 (closed). Replaces #8769.