When possible, you always hold one of the threaded parts and turn the other. The barrel isn't one of the threaded parts. In this case, the receiver and the barrel nut are.
When the barrel is clamped and torque is applied to the barrel nut, the receiver can rotate on the barrel extension. The...