Allow multiple resources for the same JID in a MUC room

Implementation of esl/MongooseIM#240
My mistake, at first I though that `StateAcc` is not passed to the function.