sage: assume(x,"real")

because it can't assume sin(x) to be real. But trying that gives an error, so, even if Maxima doesn't know by itself that sin(x) is real, there should be a means to specify it.