Wait 500 ms if activity manager is locked