x86/entry: Make irqs_disabled checks in exit code depend on lockdep