Modelling spontaneous chiral stereoselection: the Frank mechanism with racemization