Bug 945327 - Improve local ref management in AndroidBridge. r=blassey, a=bajaj