Junction of three off-critical quantum Ising chains and two-channel Kondo effect in a superconductor