Stop mishandling the type number in dynlock locking