Fix merging with locked posts (thanks to Tatiana5).