Organic macromolecular compounds containing oxygen as ingredients in lubricant compositions used as thickening agents