libfreerdp-cache: refactor glyph cache and add logging