[PATCH openEuler-1.0-LTS 041/316] ring-buffer: Fix recursion protection transitions between interrupt context