Locking issues fixed: double locking in accept removed
Pending: lib_free deletes device inside an iterator. iterator fails