[TO_STAGE] Bug 1032950

Change ownership of by-id link to gear uid/gid so future deployments
that don't go through mcollective don't fail because of file
permissions issues.

(cherry picked from commit ae08e4ea393437954385922a1b0af13c2fe11805)