Oh, sure, I missed the point that the gates' ways were tagged as lock_gate.
Thanks a lot for your explanation, there is a lot to do I think, because every canal I saw had lock_gate as a point.

I haven't created such overlap on purpose, but I will be careful in the future and try to split existing ones.