compare st_mode as integer; rm unnecessary string conversion

Per https://github.com/saltstack/salt/pull/4738#discussion_r4050234
Merge pull request #4746 from cvrebert/patch-1

compare st_mode as integer; rm unnecessary string conversion