Server: Minor optimization of mv_yx_in_dir_legal().