Absence from service by reason of a leave of absence granted by the governing board of an employing district shall not be construed as a break in the continuity of service or by any district retirement plan adopted pursuant to the provisions hereof, but the period of leave shall not be counted as time served toward retirement unless the period is so counted under the State Teachers Retirement Act.