efi_runtime: Changed the strsize function to handle userland pointer

Currently strsize function only deals with kernel space pointers by directly dereferencing the pointer, this
approach will fail when passed a userland pointer. This patch fixes the function to handle both kernel and userland pointers.

Signed-off-by: Pradeep Gaddam <pradeepdeeps@gmail.com>