[PATCH 5.4 34/85] ring-buffer: Fix recursion protection transitions between interrupt context