Asymmetric toroidal flux generation due to phase locking of internally resonant tearing modes in the RELAX reversed-field pinch