Promise coroutines: await doesn't actualy wait

@Alexey.Andreev, glad I could help you find a bug, but removing “inline” doesn’t solve the problem in my real code. So, I suppose I need to create a more realistic example. My real code is calling into PouchDB and I don’t know what it does internally, but I guess I’ll have to dig into it.