restore the check ahead of the lock to avoid using it after initialization
is done