Make font_assets thread safe

Refactored the middleware to be thread safe and made sure that the
handling of options request is only applied to fonts assets.