This is my lame attempt at fixing the issue documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195006
It's not going to be bulletproof as anyone could use another different non-persistent filesystem we aren't aware of, but this should help...