Lock acquisition of the Virgo gravitational wave detector