mm: vm: Fix bug regarding segment linking

Signed-off-by: Bart Kuivenhoven <bemkuivenhoven@gmail.com>