spinlocks: Fix gcc version check