Frustration effect on synchronization and chaos in coupled oscillators