kernel/linprocfs: Fix a panic when accessing /proc/<pid>/maps.