Local finiteness is restricted direct product-closed