Goldie, Alexander, Writer to the Signet