Scarce jobs: migrants or locals at the end of the queue?