Solvability for second-order nonlocal boundary value problems with dim(kerM)=2