Noncommutative anisotropic oscillator in a homogeneous magnetic field