Walid Ahmad, who died after collapsing in unclear circumstances, was being held for six months without being charged.