Fix bug in DiffusingPlanner when planning with locked degrees of freedom.