Plans to turn redundant primary school near Masham into housing