memif: fix crash with zero-copy slave