Expose P_IsLocalPlayer to Lua
Part of a series of isolations from !1472 (closed). This one exposes P_IsLocalPlayer
to Lua. Yes, you can very easily just do player == consoleplayer or player == secondaryconsoleplayer
in Lua, but if C gets the privilege of having this function, then Lua should get it too.