The Tick Formulation for deadlock detection and avoidance in railways traffic control. (March 2021)