Lock for 2.1 branch of nette/nette