Partially and fully frustrated coupled oscillators with random pinning fields