If you lie out of fear sometimes is it considered compulsive lying?

No, lying out of fear is not compulsive lying. It may be a compulsion, but that's a normal reaction; a defense mechanism. If you lie out of fear, it is justified, therefore *not* driven by a compulsion. Compulsive lying is an actual disorder, characterized by the pathalogical liar telling fibs without motivation, often telling wildly exaggerated stories and appearing to honestly believe them to be true.