having fixed locking elements on the non-rotating bolt and rotating locking elements mounted on the barrel or breech housing