Since the range deleter observer runs on any node of a shard, also secondaries may try to register tasks on the range deleter service. This is fine because the registration on secondaries will fail and be gracefully handled by the observer.
Purpose of this ticket is to move this log line after the acquisition of the mutex (only successful on the primary) in order not to log it on secondaries.