state manager: fixes race condition when ordering multiple drinks

Adds a waiting time to avoid the racing condition when ordering multiple drinks.

Replaces #28