add deadlock detection limit to API implementations too