Fix for Nette 2.1-dev

Nette\DI\ServiceDefinition::setShared() is deprecated.