res_sorcery_memory_cache: Add support for maximum_objects.