Some drugs cause the pupils of the eyes to become constricted, which is sometimes called "pinpoint" pupils.So "pinned" might have arisen from this.