Implement LockSize() on xgb