s4-ldb: Add ldb_msg_canonicalize_ex() to accept a memory context from client