Implement game_waitforchange notification.

Implement notification on changes to the best chain via boost condition
variables and use that to implement game_waitforchange.