CA-145177: Remove non-used code

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>
CA-145177: Raise exception on double lock attempts

Signed-off-by: Mate Lakat <mate.lakat@citrix.com>