libc - Do some reorganization of nmalloc() and add asserts.
* Reorganize mtmagazine_alloc() and mtmagazine_free() to make the code
more clear. Add assertions on 'continue' loops so we abort on
magazine memory corruption instead of looping forever.
* Pre-stage the new magazine that mtmagazine_free() might need to avoid
having to relock the depot. This also allows us to stage the new
magazine directory into the per-thread loaded field instead of running
it through the depot.
* Fix a deep or infinite recursion which can occur when mtmagazine_free()
calls _slaballoc(), which it does sometimes when it needs a new
magazine. Avoid reentrancy by temporarily disabling the per-thread
cache around the call.