panic related to nvkms_timers.lock (sx lock)

The problem is that it is now allowed to use sx locks in the interrupt thread context on FreeBSD. See the Context mode table here https://www.freebsd.org/cgi/man.cgi?locking(9).
I have actually got a crash caused by this issue while running a debug kernel with INVARIANTS enabled: