[udesk/dante] Mark extnum as unused in udeskQueryExtension

Mark extnum as unused since we support no extension yet, clears
warnings on some compilers.
[udesk/dante] Add static small cache.

Add a simple static small object cache for frequently added
objects. This allows fast allocation and lookup of
frequently generated and deleted objects, it is particularly
useful for events.