If that's the case, then why does other country have their NBA players still play for the upcoming FIBA world cup? They should have also been restrained from participating too since they have obligation in the NBA?
There are also (International) NBA players who opted not to play for their country. Those who withdrew from playing with their national team were not restrained or anything, it was purely the players decision whatever the reason is.