Spin-orbit coupling-induced magnetic phase in the d-density-wave phase of La2-xBaxCuO4 superconductors