main/cryptsetup: fix segfault in error reporting

Problem is that strerror_r in glibc is non-conformat with POSIX.

ref #3470

reported upstream:
https://code.google.com/p/cryptsetup/issues/detail?id=237