The race detector complained whenever SIGUSR2 was sent to rclone so this adds a mutex to prevent concurrent access.