I guess that's more for airplane simulators then. But I'd also think any physics engine where things can rotate arbitrarily need to work correctly here.
I also think, despite various sources on the internet saying "quaternions are the solution to gimbal lock", that classical 3D vectors and 3D matrices without quaternions also perfectly solve it.