procfs: shared_ptr

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