Flagpole pin lock