MDL-38541 Warn/die when some API functions are executed during upgrade