Basically to sum things up, if you have Star Alliance gold status, you can guest one person into the lounge regardless of the cabin you or your guest is flying in.
If you do not have Star Alliance gold status, you cannot guest anyone into the lounge even when you are flying in business class.