target: fix potential race window in target_sess_cmd_list_waiting()