Avoid TOCTTOU condition when getting the path to the process binary by
opening the binary, checking its symlink in /proc (to verify not
deleted), and *then* fstat'ing the path.