Means for securing gates in their desired position