On the optimal control of a linear neutral differential equation arising in economics