don't segfault if mmap() failed

APCu segfaults if mmap() failed during the initialization.
This trivial check fixes it.