Mercedes' Valtteri Bottas says he was unlucky to be behind a yellow flag on the final lap of qualifying at the Tuscan GP.