Magnetic-field-induced oscillation of multipartite nonlocality in spin ladders