SERVER-9072 Include function declaration from header file

Use #include "mongo/s/d_logic.h" to get the declaration of logOpForSharding()
instead of repeating the declaration.