Hello, thank you for using this site to help you with your problem. My name is XXXXX XXXXX I have been in the dog field for 25 years. It will be my pleasure to help you today. You may be looking at allergies generally airborne allergies will have a dog lick its legs or feet or you may be looking at Acral Lick Granuloma which has a few underlying causes. Sometimes ointment alone wont help but oral antibiotics are needed as well. Ypu can read more on this here :
As for air licking, this can be a sign of seizure activity and the golden is prone to epilepsy. There are different stages to seizure activity and air licking is one form. I will direct you to a site for this as well and it has a video of a dog snapping at air which is similar to air licking.
Here is more on allergies http://www.petplace.com/dogs/seasonal-allergies-and-your-pet/page1.aspx
To keep the dog from licking the leg I would invest in a comfy cone so the area has time to heal. You can continue to wash it with antibiotic soap and applying an ointment but if the dog continues to lick the sore will remain.