Remove specified segment from the linked-list path and clean up joint-related data for the joint that ends with this segment. note: the joint data (e.g. joint angle queue) for the joint that started with this segment will be dirty.