One-, Two-, and Three-dimensional Simulations of Oxygen-shell Burning Just before the Core Collapse of Massive Stars