Recognizes valid memory structures.
(MEM::memory-p mem)
memory-p has a guard of t and can be called on any object.
memory-p returns t if mem is a memory, nil otherwise.
The implementation of memory-p is private.