[Libguestfs] [PATCH nbdkit] locks: Cache the plugin thread model.