Pronunciation of luxury

As David Garner mentioned in a comment, "extract" and extra" wouldn't be pronounced with a /g/ sound because the x is before /t/ in these words.

The letter "x" is sometimes pronounced with /g/ + a voiced fricative sound when it comes before a vowel; mainly when the following vowel is stressed (as in exact). In luxury, the following vowel is not stressed, but in the related word luxurious, it is. So it seems likely that the pronunciation of luxury with /g/ is derived from the pronunciation of luxurious with /g/. I don't know why there would be a difference between British and American speakers. As was mentioned in the comments, not all American English speakers use /g/ in luxury: some use /k/.