use recursive mutex for Log