It will deadlock in the center because the car lanes are used for two directions. Unless you upgrade those unidirectional lanes into bi-directional pairs of lanes.
And it will still deadlock, so you have to put a round-robin semaphore in the middle.
Hi. I understand your rant. Yes, the quality of most frameworks in the wild is pretty low, especially if it is one of the more niche algorithm nobody takes care to audit, or the programming language lacks safety syntax, like C++, which allows writing mixed C and C++ code and only few people understand the necessity of idiomatic C++. And of course, inexperienced devs go the easiest way.
Don’t give up and take this as a challenge. It is a skill to understand what the other guy wrote. And this skill takes years to develop.