Removed XLMModel inheritance from FlaubertModel(torch+tf)
# What does this PR do?
related to #19303

Removed XLMModel inheritance from FlaubertModel for pytorch and tensorflow

## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [X] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#start-contributing-pull-requests),
      Pull Request section?
- [X] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@sgugger 

Hi @sgugger I am failing some tests, can you please help me with this?<|||||>_The documentation is not available anymore as the PR was closed or merged._<|||||>@sgugger Hi. esm model test is failing but I am not able to figure out why. Can you please help?
<|||||>Arf, sorry I misled you. The copied from came from the code of XLM (they are copied from BERT actually) and you need to keep them. Sorry about that!<|||||>Thank you for your help!