Bug 896374 - Fix infinite loop in MediaResourceManagerService::cancelClientLocked(). r=doublec