Add a new check_locking script that checks spinlocks.