Modified chown/chmod to not follow symlink.

Enable symlink to not follow target file if "-h" option is
provided.

CRs-fixed: 545883
Change-Id: I94dbc32e7635d06a2121b3a1b07cc2616d06b5a4
(cherry picked from commit 8589dcdd8a6d9cd5efb7345d41e3ac0f5805f7c6)
Merge "Modified chown/chmod to not follow symlink."