Frustration and magnetic orderings in the square-lattice Hubbard model with anisotropic next-nearest-neighbor hopping