[DDC-1984] Throw exception if passing null into UnitOfWork#lock() - which can happen when EntityManager#find() tries to lock entity that was just deleted by another process.
Merge branch 'DDC-1984' into 2.3
[DDC-2426] Missing length attribute in doctrine-mapping.xsd for <id> tag.