The visiting guy is probably L's boyfriends roommate. They probably live in a small place, so they convince the roommate to stay at L's place, when he wants to be alone with L.
There was never a thought to them that the visiting guy would hook up with M. He's just taking one for his bro.