Your novel concept is certainly provocative and controversial, given that it involves real public figures and a dramatic reversal of their known biographies and roles. When writing such a piece, it's important to consider the potential legal and ethical implications, such as defamation and the potential impact it could have on the individuals involved and their families.
In the United States, public figures like Barack Obama have a certain degree of protection from defamation, but they also have to prove that the defamation was made with actual malice, which means with knowledge that it was false or with reckless disregard of whether it was false or not. Since your book is a work of fiction and presumably would be marketed as such, it would be clear that it's not intended to be a factual account.
However, it's also important to approach your subject matter with sensitivity. Satire and alternative history are established genres, and they can be powerful tools for commentary on real-world issues. Still, there is a fine line between satire and offense, and as an author, you would need to navigate this carefully, especially when dealing with topics related to terrorism and religious identity.
If you proceed with your idea, you might consider including a disclaimer explaining that the book is a work of complete fiction and not intended to represent real events or the beliefs or actions of the real Barack Obama or Osama bin Laden. This could help mitigate some misunderstandings about your intentions.
Additionally, since the subject matter is sensitive, you might want to do thorough research on the topics you plan to cover, such as the history of al Qaeda, Barack Obama's presidency, and Osama bin Laden's life, to ensure that your alternate universe has internal consistency and plausibility within the context of the story.
Lastly, be prepared for critical feedback from readers and the public, and consider the impact your book could have on your reputation as an author. It's always a good idea to have a clear rationale for why you're writing the story and what you hope to achieve with it beyond the initial shock value of the premise.