I think it's still correct, because [locked] can be both true and false at this point, but these actions are still performed, unlike the other two methods that don't do much when [locked] is true. And I've also expanded the comment to clearly explain what's happening.