[PATCH 4.19 41/71] ring-buffer: Fix recursion protection transitions between interrupt context