Learning and incentives in waitlist mechanisms