Workaround the bug in thread-storage for the effect actions recursion
level count