fix deadlock bug on empty friend list