Redmine#4390: call chown to avoid race