check_lock_transition
static int check_lock_transition(int, int);
if (check_lock_transition(old_state, new_state)) { \