No. Once unlocked, it cannot flip back to its locked side.
You check the condition after pending abilities and effects have completely resolved, not partway through them.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.