The extra closure seems unnecessary. Just pass `shm_unlink`.