Changed mutex timeout parameter to milliseconds.