I think this has been done now. The flag has been removed from the kdb plugin data structure, and the db2 code has been wrapped with functions doing mutex protection for now, though there's room for improvement there.