secmem: fix potential memory visibility issue
* configure.ac (gcry_cv_have_sync_synchronize): New check. * src/secmem.c (pooldesc_s): Make next pointer volatile. (memory_barrier): New. (_gcry_secmem_malloc_internal): Insert memory barrier between pool->next and mainpool.next assigments. (_gcry_private_is_secure): Update comments.
- Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>