s_expressions-lockable: new function to help invalidate popped states