On permutation patterns, pinnacle sets, and backbones of bipartite projections