tests: Add tests for parsing lockspace and resource names
We add fast tests for sanlock API stubs only to test their
argument parsing. It is expected that if argument parsing
succeed, the API call itself will fail with errno since those
are only stubs so we add helper to assert on the proper errno.