add smbc_ftruncate() to emulate POSIX ftruncate()