It would be great if you could add information from `findDeadlockedThreads()` to the dump.

Maybe you should check if the JVM the test runs on supports the flags and operations used, by calling things like `isObjectMonitorUsageSupported()`, so the dump code doesn't throw exceptions if it runs on a non-standard JVM.