Add lock to caching related file_put_content call for make Framework more stable in high concurrency condition.