feature: added a pure C API function for FFI implementations of shdict:flush_all().