Phase flip code with semiconductor spin qubits