ring-buffer: Move disabled check into preempt disable section