ACPI / debugger: Fix an issue a flag is modified without locking