Resolving deadlocks in flexible manufacturing cells