The BCS pairing gap in the on-shell limit of the Similarity Renormalization Group