Fixed data race of concurrent processes initializing the protected header
After initializing hdr.lock, a concurrent process entering the same exclusive block might already use lock.mtx before it is properly initialized. This issue needs to be addressed in the non-generic module as well.
git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7534 8c9fc860-2736-0410-a75d-ab315db34111