Declare fd_mig_lock as extern so that it isn't defined multiple times. This should fix build for architectures without double-width CAS.