lib: Add tst_acquire_device() and tst_release_device()

* Add two lib functions tst_acquire_device() and tst_release_device()

* Add documentation into test-writing-guidelines

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>