Marking an ambitious detour into comedy, “Thor: Ragnarok” conjures sparks but doesn’t quite catch lightning in a bottle.