Railway parking, barrier may lock vehicles