[4855] Added decorators for caching data and locking function.

https://gist.github.com/8r2y5/3305eb923bab95338cd2 - pylint & nosetest
https://bugzilla.stxnext.pl/show_bug.cgi?id=4855 - ticket