In a fiercely competitive market, Apple could not have scripted better timing for Samsung's recall, analyst says.