A plate oscillating across a liquid interface: effects of contact-angle hysteresis