configure: make the C11 atomics check more robust