Origin of the synaptonemal complex