Embedded Transitive-Closure Network for Run-Time Deadlock Detection in Networks-on-Chip