Up to 5,000 women pensioners could be entitled to huge refunds under a little-known-rule, the BBC has learned.