fix bug: physics crashes when remove/add children too quick.

Fix PhysicsTest->Contact Test crashes when click buttons very fast.

@Dhilan007 Please check this.