Add a sysctl and tunable kern.syscall_mpsafe which allows system calls
marked MPSAFE in syscalls.master to run without the MP lock. This sysctl
is disabled (0) by default.
To make this work the userland scheduler's passive release / acquire code
had to be made MPSAFE. The release code accomplishes this by using
atomic_*() ops to manipulate curprocmask and rdyprocmask. The acquisition
code currently obtains the MP lock unconditionally. The userland scheduler
really need to be rewritten to be cpu-localized.
Only a few system calls, such as getuid(), are currently marked MPSAFE.
No matter how a system call is marked, the MP lock is obtained
unconditionally when ktracing or signaling.