Mechanisms or systems operated by propellant charge energy for automatically opening the lock gas-operated using a gas piston arranged concentrically around the barrel