Supposed to fix SCP: Secret Laboratory intermittent crash at main menu.
The first two patches make the existing validation also work for other thread context query (as context_from_server called through get_thread_context() doesn't do that).
The last patch adds xstate alignment validation with corresponding test.