apr_memcache: custom version with locks issues solved