fix bug of bootstrap_lock