Fixed #2107: LoadingBar setPercent is invalid.

1. setPercent is invalid when _scale9Enabled is true.
2. setPercent is invalid when setContentSize after setPercent