Two mechanisms necessary for the stable inheritance of plasmid RP4