Composite 2HDM with singlets: a viable dark matter scenario