Constrained oviposition and female-biased sex allocation in a parasitic wasp