Orographic destabilization of a laterally sheared flow