The two gear trucks that are on the fuselage of the 747 (all generations) have an unlock feature that turn those gear truck opposite to the turn...thereby, it swings the tail around and helps facilitate the turn.
If the unlock mechanism is inoperative, what you witnessed could be the result.