A coroner has criticised Army chiefs at the inquest into the death of a British soldier in Afghanistan.