replace getpwnam and getgrgid with thread safe getpwnam_r and getgrgid_r
Merge pull request #1210 from control-center/feature/CC-342

make web/cauth thread safe