TS-2454: Fix undefined reference to `__sync_fetch_and_sub_8' on ARM 32bit system

Signed-off-by: Yunkai Zhang <yunkai@redstar.celldoft.com>