Use the same code for aot alignment checks in aot-compiler.c and aot-runtime.c.