Toward Latency-Aware Dynamic Middlebox Scheduling