Better fix for S3M portamento on note end

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
[test] Add S3M sample portamento test case

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>