MFC 273866

Plug memory ordering holes in buf_ring_enqueue. For at least some
users this patch eliminates the races previously discussed on the
mailing list.

Submitted by:   oleg
Reviewed by:    kmacy
MFC after:      2 weeks
Tested by:      kmacy,rpaulo