ksm: fix deadlock with munlock in exit_mmap