Static thermo-optic instability in double-pass fiber amplifiers