A time-parallel method for the solution of PDE-constrained optimization problems