bugfix: wrong condition -> items were never cached

(but expired prematurely if lazy_expiration was on)

+ minor cleanings
API change in libiomux