fix issue 1326 (Android backend resumes audio too soon on phone unlock)

Context:

https://code.google.com/p/libgdx/issues/detail?id=1326

This is a pretty literal implementation of the fix suggested in the blog post. I have tested it on various Android versions and it works, but obviously I couldn't cover all the possible scenarios, so proceed with caution.