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.
Global variables should be prefixed with `g_`, e.g. `g_shell_open`