migrations: add function to see if a thread can be satisfied