fix possible buffer overflow in rename_dir_children()

cppcheck said:
[sqlfs.c:2254]: (error) Dangerous usage of 'new_path' (strncpy doesn't always 0-terminate it)