Fix xsendfile local storage detection with quota

Backport to stable6 for #7073 without changing the public APi

Please review/test @ser72 @karlitschek @icewind1991 @bantu 

Thanks.