Added the timeout parameter to the distributedlock class