Use a dry Graphite lube in the lock first...
WD-40 is good stuff: it's just not suitable for this application.
Then: push IN on the door (right around the latch), and try turning the key.
If you are lucky: pushing in on the door will reduce the pressure on the latch, and the graphite lube will loosen up the lock.
Good Luck!