utils: Provide a fmemopen(3) fallback using BSD funopen()