fix the use of syscall result in dl_mmap