I don't think we need to use ANY_THREAD constant here. Setting to zero is no different than setting  lockcount to 0 or owner to NULL.