shared: procfs_file_alloca: handle pid==0

when pid is set to 0 use /proc/self
util.c: use read_one_line_file where possible