By doing complex VFS shutdown operation, the system's memory image will be modified a lot since a panic was triggered. I'd totally skip vfs_shutdown() after a panic [1], then do the best to dump a kernel core for analysis.
[1] OpenBSD's panic(9) sets RB_NOSYNC only when panicstr is already set
(== recursive panic()) at this moment.
