[kfreebsd] Add some extra `static` modifiers.
[kfreebsd] Learn the name of the module.
[kfreebsd] Eliminate a `goto` in `mirage_kthread_init()`.
[kfreebsd] Add support for per-instance memory limiting via kenv(1).