Get correct layer for layered moved-to.

* subversion/libsvn_wc/wc-queries.sql
  (STMT_SELECT_HIGHEST_WORKING_NODE): New.

* subversion/libsvn_wc/wc_db_update_move.c
  (update_moved_away_conflict_victim): Use STMT_SELECT_HIGHEST_WORKING_NODE.

* subversion/tests/libsvn_wc/op-depth-test.c
  (test_funcs): Mark layered_moved_to PASS.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1442165 13f79535-47bb-0310-9956-ffa450edef68