Fix atomicinc

I think the change in optimisation levels due to
d06083739a310c36e9e6dc82107c8c4b03210e56 had the side effect of not
inlining atomic_inc(), which together with the broken way the test was
set up made it fail.