On a nonlocal boundary value problem for semilinear hyperbolic-parabolic equations