[Mono.Debugging] Don't lock the session lock when getting the AttachedToProcess state

Fixes the second deadlock reported in bug #14917