[PATCH 5.9 060/133] ring-buffer: Fix recursion protection transitions between interrupt context