As Spain waits to learn if the Socialist premier will resign, analysts say his announcement could be a political play.