Enable timeout for memcached access with stack_context

Signed-off-by: Wang Xu <gnawux@gmail.com>