Make LoginWarningHandler static

Signed-off-by: Ross Allan <rallanpcl@gmail.com>
Update SimpleMutex - implement tryLock

Signed-off-by: Ross Allan <rallanpcl@gmail.com>