guard against permission denied errors
reading from /proc/<pid>/smaps is not available inside of Docker container
Merge pull request #2622 from gschlager/fix_memstats

handle permission denied errors