fix tmpfs crash upon coredump into removed dir

disallow file allocations on directories that have been removed
(tn_links == 0). failure to enforce such a check can lead to the
violation of the assumption that removed directories should not contain
directory entries -- thus triggering an assertion.

problem reported by Sebastien Marie and Peter J. Philipp on
bugs@openbsd.org -- thanks!

ok natano@