procfs: procfs_lookup improvements

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>