Bar bolt lock for square hexagon socket with guide pin