cross platform: Fix file descriptor leak on PAL_IsDebuggerPresent
cross platform: Fix file descriptor leak on PAL_IsDebuggerPresent

Also submitted a PR to coreclr to fix the same issue there.
This PR fixes the Regex/BoiHardFail.js on Fedora.
Now we have all the tests are passing on Fedora

mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore