agent: Serialize access to passphrase cache.
* agent/cache.c (encryption_lock): Remove. (cache_lock): New. Now, we have coarse grain lock to serialize entire cache access. (initialize_module_cache): Use CACHE_LOCK. (init_encryption, new_data): Remove ENCRYPTION_LOCK. (agent_flush_cache, agent_put_cache, agent_get_cache): Lock the cache.
- GnuPG-bug-id: T3027
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>