Patriots plan to release veteran QB