MFC r267255:
Change the nblock mutex to rwlock.

MFC r267264:
Devolatile as needed.
MFC r267492:
Fix some cosmetic issues with the use of kmem_malloc() in the i386 LDT
sysarch(2) code.