PTM_U: Implemented the GetShellState function.

Uses a new miscellaneous setting for the shell state, default to true.

This function returns whether the 3DS's physical shell casing is open or not.
On second thought, if there is no reason to make this global, then make it static (and no need for the `g_` prefix)