Solar Flare Phenomena as Phase Transition Caused by Frustration of Current Percolation