ITS#8603 Add ldif_open_mem()

ldif_open_mem() is the fmemopen(3) equivalent of ldif_open() which opens
an ldif steam from memory, rather than from a file.
2 jobs for its8603 in 27 minutes and 22 seconds (queued for 1 second)