Fix Orchid deadlock 1

https://github.com/subgraph/Orchid/pull/10
Add cycle detecting locks, fix Orchid deadlock 2

https://github.com/subgraph/Orchid/pull/10

Conflicts:
	orchid/src/com/subgraph/orchid/circuits/CircuitIO.java