Synchrotron instability for long pulses in free electron laser oscillators