Natural convection in a horizontal fluid layer bounded by thin porous boundaries