As "Hamilton" heads to London and "Harry Potter" comes to New York, the two plays are experimenting with measures to limit reselling of their tickets.