sstate: Improve funciton checksums

Now that bitbake is recursing into pre/postfuncs, we need to ensure
the dependencies of these functions is correct. We don't want dependencies
on MACHINE or other related variables. This patch adds in appropriate
variable exclusions to achieve this.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>