ResMan: fix clearing the waiting queue and passing player id in loading function