Locks for railway freight-cars, freight containers or the like; Locks for the cargo compartments of commercial lorries, trucks or vans for sliding wings