This check covers the previous case (cache started) as well as
other potential incorrect usages of the command. Also now
the check is made exactly at the moment of opening the
device to write to.
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>