Growth of longshore currents downstream of a surf-zone barrier