target: Fix residual overflow handling in target_complete_cmd_with_length