can't use $di->params after locking