* API::check_deadlock() add lockwait detection.
* lockwait and deadlock detection is now in place for ALL
/api/subscribers endpoint methods. because of logic complexity
it uses own deadlock detection instead of relying on Entities.
It however uses $self->check_deadlock() and similar logic.
Change-Id: Idc1876910711563fe14c878541e350ad373d6d31
(cherry picked from commit 3bb3d9e4e4)
(cherry picked from commit 09d011af45)