minor cleanings to avoid some warnings on older gcc versions

about using __sync_* functions ignoring the return value