Fixed schema update hook registration

We need to use $GLOBALS otherwise callback is not correct registered and
update from web will fail

Change-Id: I75b13c38eda953cd44036843fc099493da456273
Merge "Fixed schema update hook registration"