On the contrary, the commonly-acknowledged right of habeas corpus essentially requires the government to make the fact that someone is being detained public, at least if the prisoner himself so chooses. Privacy is a red herring here - habeas corpus is about preserving basic freedoms.