The problem with the gun is not the rotation but the use of propellant that implies a real linear force is exerted upon the exhaust of the bullet outwards (action force over the ejected gas) that results in a reaction force pushing the bullet forward. Here clearly applies Newton's third law. However, another action-reaction event is taking place while the projectile and the ejected gas are still  in the barrel chamber. In this case, the momentum of the gases is transferred towards the gun, resul