[KARAF-2628] Fix synchronization issues in the commands completer
[KARAF-2632] Handle backslashes at end of line in the console