Detect stale dev server lock files after PID reuse (#17671)