Spin Josephson effects of spin–orbit-coupled Bose–Einstein condensates in a non-Hermitian double well