Fix deadlock involved in requesting within a callback