The Efficient Allocation of Consuption under Moral Hazard and Hidden Access to the Credit Market