Locking flanges