session: add support for memfd segments