thp: move shmem_huge_enabled() outside of SYSFS ifdef