Spinlock mm ramfile

use spinlocks to protect the memory management and ram_fs global structures. note: needs testing on clang