Finite-size scaling at first-order quantum transitions when boundary conditions favor one of the two phases