Revert "macosx retain sharedContext and releaseContext"

This reverts commit c6b33924c12de0efb6008cedf3110883e400649b.