Set proper default for Thread.locksHeld

It should be an empty array, not null.