core: set 'infinity' timeout on the z_template_indexer:find_all gen_server call.
This prevents the z_mediaclass from crashing (and others as well) during high load and rescanning.
mod_filestore: fixes for cache sync, sql fix and reset of filestore flags after upload.