If you try to move Masterful Ninja from the battlefield to your hand or vice versa, and it's in both zones, it will just stay in both zones. For example, if Masterful Ninja is in both zones, casting Unsummon targeting it won't do anything.