Fix for crash bug in screen-locked Android device

When device locked and runs your cocos2d-x application, it just crashes
down that happen in
Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause.
This patch fixes this problem and awaits for unlocking screen.